package com.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;


/**
 * Created by tancw on 2017/2/13.
 */
public class WeixinToken {
    private String name;
    private String access_token;
    private Date create_date = new Date();

    public WeixinToken() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public Date getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    @JsonIgnore
    public boolean isAva() {
        return System.currentTimeMillis() - this.create_date.getTime() < 7200 * 1000L;
    }
}
